﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Imagiality.MeshProcessing
{
    public class RenderableParentsSceneQuery : ByTypeSceneQuery<Renderable>
    {
        public RenderableParentsSceneQuery()
            : base()
        { 
        }

        public RenderableParentsSceneQuery(int levelLimit) : base(levelLimit)
        { 
        
        }

        protected override bool ProcessNextLevel(int level, SceneObject parent)
        {
            return !IsMatch(parent);
        }      
    }
}
